---

apiVersion: v1
kind: Endpoints
metadata:
  labels:
    k8s-app: etcd
  name: etcd
  namespace: kube-system
subsets:
- addresses:
{% for endpoint in etcd.endpointIps.split(',') %}
  - ip: {{ endpoint }}
{% endfor %}
  ports:
  - name: metrics
    port: {{ etcd.port }}
    protocol: TCP